﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPageFormulariosCadastros.Master"
    AutoEventWireup="true" CodeBehind="CadastroUsuario2.aspx.cs" Inherits="Manager.Formularios_Cadastro.CadastroUsuario" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style>
        .mGrid
        {
            background-color: #fff;
            margin: 5px 0 10px 0;
            border: solid 1px #525252;
            border-collapse: collapse;
        }
        .mGrid td
        {
            padding: 2px;
            border: solid 1px #c1c1c1;
            color: #717171;
        }
        .mGrid th
        {
            padding: 4px 2px;
            color: #fff;
            background: #424242 url(Grid/grd_head.png) repeat-x top;
            border-left: solid 1px #525252;
            font-size: 0.9em;
        }
        .mGrid .alt
        {
            background: #fcfcfc url(~/Grid/grd_alt.png) repeat-x top;
        }
        .mGrid .pgr
        {
            background: #424242 url(~/Grid/grd_pgr.png) repeat-x top;
        }
        .mGrid .pgr table
        {
            margin: 5px 0;
        }
        .mGrid .pgr td
        {
            border-width: 0;
            padding: 0 6px;
            border-left: solid 1px #666;
            font-weight: bold;
            color: #fff;
            line-height: 12px;
        }
        .mGrid .pgr a
        {
            color: #666;
            text-decoration: none;
        }
        .mGrid .pgr a:hover
        {
            color: #000;
            text-decoration: none;
        }
        .style1
        {
            width: 130px;
        }
        .style2
        {
            width: 130px;
            height: 26px;
        }
        .style3
        {
            height: 26px;
            width: 244px;
        }
        .style4
        {
            width: 244px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div style="padding: 10px">
        <table style="width: 100%; height: 100%;">
            <tr>
                <td class="style1">
                    <asp:Label ID="Label1" runat="server" Text="Nome do Usuário " ForeColor="Black"></asp:Label>
                </td>
                <td class="style4">
                    <asp:TextBox ID="txtNome" runat="server" CssClass="tb7"></asp:TextBox>
                </td>
                <td></td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label2" runat="server" Text="Login " ForeColor="Black"></asp:Label>
                </td>
                <td class="style4">
                    <asp:TextBox ID="txtLogin" runat="server" CssClass="tb7"></asp:TextBox>
                </td>
                <td></td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label3" runat="server" Text="Senha " ForeColor="Black"></asp:Label>
                </td>
                <td class="style3">
                    <asp:TextBox ID="txtSenha" runat="server" CssClass="tb7" TextMode="Password"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
             <tr>
                <td class="style2">
                    <asp:Label ID="Label5" runat="server" Text="Repitir Senha" ForeColor="Black"></asp:Label>
                </td>
                <td class="style3">
                    <asp:TextBox ID="txtSenhaValidar" runat="server" CssClass="tb7" 
                        TextMode="Password" onunload="txtSenhaValidar_Unload"></asp:TextBox>
                </td>
                <td>
                    <asp:CheckBox ID="CheckBox1" runat="server" ForeColor="Black" 
                        Text="Atualizar senha à cada 30 dias." />
                 </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label4" runat="server" Text="Tipo Usuário" ForeColor="Black"></asp:Label>
                </td>
                <td class="style4">
                    <asp:DropDownList ID="ddTipoUsuario" runat="server" Width="150px">
                        <asp:ListItem Value="0">Product Owner</asp:ListItem>
                        <asp:ListItem Value="1">Scrum Team</asp:ListItem>
                        <asp:ListItem Value="2">Scrum Master</asp:ListItem>
                        <asp:ListItem Value="3">Cliente</asp:ListItem>
                        <asp:ListItem Value="4">Gerente</asp:ListItem>
                </asp:DropDownList>
                </td>
                <td></td>
            </tr>
            <tr>
                <td class="style1">
                </td>
                <td class="style4">
                    <asp:Button ID="btCadastrar" runat="server" Text="Cadastrar" 
                        onclick="btCadastrar_Click" />
                </td>
                <td>
                </td>
            </tr>
        </table>
        <asp:GridView ID="gvUsuario" runat="server" AutoGenerateColumns="False" GridLines="None"
            AllowPaging="True" CssClass="mGrid" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt"
            Width="390px" ShowFooter="True">
            <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
            <Columns>
                <asp:BoundField DataField="Nome" HeaderText="Nome do Usuário" />
                <asp:BoundField DataField="Login" HeaderText="Login" />
            </Columns>
            <PagerStyle CssClass="pgr"></PagerStyle>
        </asp:GridView>
    </div>
</asp:Content>
